package cc.miwuya.common.util;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author 迷雾森林
 * @Date 2024-01-29 9:51
 */
public class OrderStatusUtil {
    private final static Map<Integer,String> statusMap = new HashMap<>();
    static {
        statusMap.put(0,"待付款");
        statusMap.put(1,"待发货");
        statusMap.put(2,"待收货");
        statusMap.put(3,"已完成");
        statusMap.put(4,"已取消");
        statusMap.put(5,"退款中");
        statusMap.put(6,"已退款");
        statusMap.put(7,"退款失败");
        statusMap.put(-1,"待付款");
        statusMap.put(-2,"待发货到检验中心");
        statusMap.put(-3,"待收货-正在发往检验中心");
        statusMap.put(-4,"待收货-等待检验中心发出");
        statusMap.put(-5,"待收货-检验中心已发出");
        statusMap.put(-6,"退款中-检验中心已驳回");
    }

    public static String invert(int status){
        return statusMap.get(status);
    }
}
